﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace Sharp.DataTransferObject
{
    public partial class MessageBoxDTO : BaseDTO
    {
        public MessageBoxDTO()
        {
            //Senders = new List<User>();
            //Recipients = new List<User>();
            IsReaded = false;
            SendStatus = true;
            ReceveStatus = true;
        }
         
        /// <summary>
        /// 消息
        /// </summary>
        [Required]
        public MessageDTO Message { get; set; }
        /// <summary>
        /// 发件人id
        /// </summary>
        public Guid SenderId { get; set; }
        /// <summary>
        /// 收件人Id
        /// </summary>
        public Guid ReceiverId { get; set; }
        ///// <summary>
        ///// 发件人
        ///// </summary>
        //public virtual ICollection<User> Senders { get; set; }
        ///// <summary>
        ///// 收件人
        ///// </summary>
        //public virtual ICollection<User> Recipients { get; set; }
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsReaded { get; set; }
        /// <summary>
        /// 阅读时间
        /// </summary>
        public DateTime? ReadedTime { get; set; }
        /// <summary>
        /// 发件箱状态
        /// </summary>
        public bool SendStatus { get; set; }
        /// <summary>
        /// 收件箱状态
        /// </summary>
        public bool ReceveStatus { get; set; }
    }
}
